from django.urls import path, include, re_path
from rest_framework.routers import DefaultRouter
from .views import *

router = DefaultRouter(trailing_slash=False)
router.register(r'local', LocalOrderViewSet, basename='local-order')
router.register(r'transfer', TransferOrderViewSet, basename='transfer-order')
router.register(r'aftersale', AfterSaleOrderViewSet, basename='aftersale-order')
router.register(r'relocation', RelocationOrderViewSet, basename='relocation-order')
router.register(r'cross', CrossOrderViewSet, basename='cross-order')
router.register(r'return', ReturnOrderViewSet, basename='return-order')
router.register(r'inventory-receive', InventoryReceiveOrderViewSet, basename='inventory-receive-order')
router.register(r'repair', RepairOrderViewSet, basename='repair-order')
router.register(r'report', ReportViewSet, basename='report')
router.register(r'fee', FeeViewSet, basename='fee')
router.register(r'order-qa', OrderQAViewSet, basename='order-qa')
urlpatterns = [
    path('postal_code/search', PostalCodeSearchView.as_view(), name='postal-code-search'),
    path('shipping_method', ShippingMethodView.as_view(), name='shipping-method'),
    path('remark', RemarkView.as_view(), name='remark'),
    # path('search/tracking/number', SearchTrackingNumberView.as_view(), name='search-tracking-number'),
] + router.urls

